<div class="subnav">
    <?php echo l('管理员列表', array('admin/index'), array('class' => 'on')); ?><span>|</span>
    <?php echo l('添加管理员', array('admin/create')); ?>
</div>
<div class="content">
    <div class="box">
        <?php
        Yii::app()->clientScript->registerScript('search', "
            $('.search-form form').submit(function(){
                    $.fn.yiiGridView.update('admin-grid', {
                            data: $(this).serialize()
                    });
                    return false;
            });
            ");
        ?>

        <div class="advancedSearch">
            <?php $this->renderPartial('_search', array('model' => $model,)); ?>
        </div>

        <?php
        $this->widget('zii.widgets.grid.CGridView', array(
            'id' => 'admin-grid',
            'dataProvider' => $model->search(),
            'summaryText' => false,
            'cssFile' => false,
            'itemsCssClass' => 'Btable',
            'columns' => array(
                'id',
                'username',
                array(
                    'class' => 'CButtonColumn',
                ),
            ),
        ));
        ?>
    </div>
</div>


